/**
 * 
 */
package com.desksoft.ecommerce.vo.mall;

import java.math.BigDecimal;
import java.util.List;

import com.desksoft.ecommerce.entity.logistics.dto.Vipcard;
import com.desksoft.ecommerce.entity.mall.dto.AllPurposeExtend;
import com.desksoft.ecommerce.vo.mall.settings.WebDataVO;

/***************************************
 * <pre>
 * 版权所有：杭州迪科软件 保留所有权利
 * 创建日期:2012-7-25, 下午06:11:41
 * 创建作者：JH
 * 文件名称：VipCardVO.java
 * 版本：
 * 功能：
 * 最后修改时间：2012-7-25, 下午06:11:41
 * 修改记录：
 * </pre>
 *****************************************/
public class VipCardVO extends Vipcard{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1713046335215678189L;
	/*
	 * 储值余额
	 */
	private float usablebalance;
	
	/*
	 *返现余额 
	 */
	private float usablebonus;
	
	/*
	 * 储值余额+返现余额 =账户余额
	 */
	private float realamt;
	
	private String billno;
	
	private String dcCode;
	
	private Integer siteId;

	private String lastpointstr ;
	
	public Integer getSiteId() {
		return siteId;
	}

	public void setSiteId(Integer siteId) {
		this.siteId = siteId;
	}

	public String getDcCode() {
		return dcCode;
	}

	public void setDcCode(String dcCode) {
		this.dcCode = dcCode;
	}

	public String getBillno() {
		return billno;
	}
	
	public void setBillno(String billno) {
		this.billno = billno;
	}

	public float getUsablebalance() {
		return usablebalance;
	}

	public void setUsablebalance(float usablebalance) {
		this.usablebalance = usablebalance;
	}

	public float getUsablebonus() {
		return usablebonus;
	}

	public void setUsablebonus(float usablebonus) {
		this.usablebonus = usablebonus;
	}

	public float getRealamt() {
		return realamt;
	}

	public void setRealamt(float realamt) {
		this.realamt = realamt;
	}
	private WebDataVO webDataVO;
	public WebDataVO getWebDataVO() {
		return webDataVO;
	}
	public void setWebDataVO(WebDataVO webDataVO) {
		this.webDataVO = webDataVO;
	}
	public MallLoginLogVO getLoginLogVO() {
		return loginLogVO;
	}
	public void setLoginLogVO(MallLoginLogVO loginLogVO) {
		this.loginLogVO = loginLogVO;
	}
	private String checked;
	
	private String logintype;
	
	private MallLoginLogVO loginLogVO;

	private String checkcode;
	public String getCheckcode() {
		return checkcode;
	}
	public void setCheckcode(String checkcode) {
		this.checkcode = checkcode;
	}
	private List<AllPurposeExtend>  allPurposeExtends;
	
	public List<AllPurposeExtend> getAllPurposeExtends() {
		return allPurposeExtends;
	}
	public void setAllPurposeExtends(List<AllPurposeExtend> allPurposeExtends) {
		this.allPurposeExtends = allPurposeExtends;
	}
	private String tablename;
	public String getTablename() {
		return tablename;
	}
	public void setTablename(String tablename) {
		this.tablename = tablename;
	}
	private String allfiles;
	
	public String getAllfiles() {
		return allfiles;
	}
	public void setAllfiles(String allfiles) {
		this.allfiles = allfiles;
	}
	public String getLogintype() {
		return logintype;
	}
	public void setLogintype(String logintype) {
		this.logintype = logintype;
	}
	public String getChecked() {
		return checked;
	}
	public void setChecked(String checked) {
		this.checked = checked;
	}
	public String getLastpointstr() {
		Double formatdm = new  BigDecimal( this.getLastpoint().doubleValue() ).setScale( 0 ,BigDecimal.ROUND_HALF_UP ).doubleValue() ;
		return String.valueOf( formatdm );
	}
	public void setLastpointstr(String lastpointstr) {
		this.lastpointstr = lastpointstr;
	}

}
